home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / dos / secmpeg3 / decode.h < prev    next >
Text File  |  1997-01-01  |  2KB  |  95 lines

  1.  
  2. /* ------ OWN STUFF ------ */
  3.  
  4. INT mb_buffer[64];
  5.  
  6. /* ------ DEBUG ------ */
  7.  
  8. INT frame_count      = 0;
  9. INT decode_mdu_count = 0;
  10.  
  11. /* ------ Bit-Mask ------ */
  12.  
  13. INT extend_mask[] =
  14. {
  15. 0xFFFFFFFE,
  16. 0xFFFFFFFC,
  17. 0xFFFFFFF8,
  18. 0xFFFFFFF0,
  19. 0xFFFFFFE0,
  20. 0xFFFFFFC0,
  21. 0xFFFFFF80,
  22. 0xFFFFFF00,
  23. 0xFFFFFE00,
  24. 0xFFFFFC00,
  25. 0xFFFFF800,
  26. 0xFFFFF000,
  27. 0xFFFFE000,
  28. 0xFFFFC000,
  29. 0xFFFF8000,
  30. 0xFFFF0000,
  31. 0xFFFE0000,
  32. 0xFFFC0000,
  33. 0xFFF80000,
  34. 0xFFF00000
  35. };
  36.  
  37. INT CodedBlockBits=0;
  38. INT EOBBits=0;
  39.  
  40.  
  41.  
  42. /* ------ Stuff for RateControl ------ */
  43. /*
  44. int PrateIndex[] = {0,24,24,25,30,30,50,60,60};
  45. int FileSizeBits=0;
  46. int Rate=0;
  47. int BufferOffset=0;
  48. int QDFact=1;
  49. int QOffs=1;
  50. int QUpdateFrequency=11;
  51. int QUse=0;
  52. int QSum=0;
  53. */
  54. /* ------ Some internal parameters for rate control ------ */
  55.  
  56. #define DEFAULT_QUANTIZATION 8
  57. int InitialQuant=0;
  58. int UseQuant;
  59.  
  60. /* ------ System Definitions ------- */
  61.  
  62. int MBWidth=0;              /* Number macroblocks widexhigh */
  63. int MBHeight=0;
  64. int HPos=0;                 /* Current macroblock position widexhigh */
  65. int VPos=0;
  66. int CurrentMBS=0;           /* Current macroblock slice count */
  67.  
  68. int BaseFrame=0;            /* Base frame for interpolative mode */
  69. int CurrentFrame=0;         /* Current frame in encoding */
  70. int StartFrame=0;           /* Start frame of encoding */
  71. int LastFrame=0;            /* Last frame of encoding */
  72. int GroupFirstFrame=0;      /* First frame number of current group */
  73. int FrameOffset= -1;        /* Offset by TIMECODE */
  74.  
  75. int FrameDistance=1;        /* Distance between interpol. frame and base */
  76. int FrameInterval=3;        /* Frame interval between pred/intra frames */
  77. int FrameGroup=2;           /* Number of frame intervals per group */
  78. int FrameIntervalCount=0;   /* Current frame interval count */
  79. int FrameSkip=1;            /* Frame skip value */
  80.  
  81. /* ------ Fixed coding parameters ------ */
  82.  
  83. int LastDC[3];
  84.  
  85.  
  86. /* ------ Book-keeping stuff ------ */
  87.  
  88. int BlockJ[] = {0,0,0,0,1,2};
  89. int BlockV[] = {0,0,1,1,0,0};
  90. int BlockH[] = {0,1,0,1,0,0};
  91.  
  92. int DCIntraFlag=0;
  93. int NumberNZ;
  94.  
  95.